package com.atguigu.service;

import com.atguigu.base.BaseService;
import com.atguigu.entity.Role;

import java.util.List;
import java.util.Map;

/**
 * Date:2022/10/29
 * Author:ybc
 * Description:
 */
public interface RoleService extends BaseService<Role> {


    /**
     * 查询ztree的节点数据
     * @param roleId
     * @return
     */
    List<Map<String, Object>> findZNodes(Long roleId);


    /**
     * 为角色分配权限
     * @param roleId
     * @param permissionIds
     */
    void assignPermission(Long roleId, List<Long> permissionIds);

}
